package com.share.design.status;

import lombok.Getter;
import lombok.Setter;

/**
 * author:caifan
 * date:2020/2/5
 */
public class ScoreContext {
    @Getter
    @Setter
    private AbstractState state;

    public ScoreContext() {
        state = new LowState(this);
    }

    public void add(int score) {
        state.addScore(score);
    }
}
